package com.ruoyi.my.service.impl;

import com.ruoyi.my.domain.MyModule;
import com.ruoyi.my.mapper.MyModuleMapper;
import com.ruoyi.my.service.MyModuleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Service
public class MyModuleServiceImpl implements MyModuleService {

    @Autowired
    MyModuleMapper myModuleMapper;

    @Override
    public List<MyModule> selectMyModule(String menu, String name) {
        Map<String,Object> colmap = new HashMap<>();
        colmap.put("menu",menu);
        colmap.put("name",name);
        return myModuleMapper.selectByMap(colmap);
    }

}
